<div id="wrapper">
    <div id="page-wrapper">
        <div class="panel panel-primary">
            <div class="panel-heading"></div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>订单状态</th>
                        <th>用户</th>
                        <th>用户手机</th>
                        <th>商品金额</th>
                        <th>应付款</th>
                        <th>已付款</th>
                        <th>配送</th>
                        <th>备注</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {%notempty name="$data"%}
                    {%volist name="$data->all()" id="vo"%}
                    <tr>
                        <td>{%$vo.order_id%}</td>
                        <td>{%$vo.order_status%}</td>
                        <td>{%$vo.user_name%}</td>
                        <td>{%$vo.mobile%}</td>
                        <td>{%$vo.goods_amount%}</td>
                        <td>{%$vo.order_amount%}</td>
                        <td>{%$vo.money_paid%}</td>
                        <td>{%$vo.shipping_status%}</td>
                        <td>{%$vo.remark%}</td>
                        <td id={%$vo.order_id%}>
                            <button class="btn btn-sm btn-danger confirmorder">确认</button>
                            <button class="btn btn-sm btn-danger orderdetail">详情</button>
                            <button class="btn btn-sm btn-danger ordership">物流</button>
                            <button class="btn btn-sm btn-danger">完成</button>
                            <button class="btn btn-sm btn-danger">退款</button>
                            <button class="btn btn-sm btn-danger">取消</button>
                        </td>
                    </tr>
                    {%/volist%}

                    </tbody>
                </table>
                <div class="pull-right">
                    {%$data->render()%}
                </div>
            </div>
            {%/notempty%}
        </div>
    </div>
</div>

<!-- 订单详情 -->
<div class="modal fade" id="orderdetailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-body" id="orderdetailModalBody">
                <div id="detailOrder"></div>
                <div id="detailgoods"></div>
                <div id="detailship"></div>
                <div id="detailsettlement"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!-- 配送 -->
<div class="modal fade" id="ordershipModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">编辑配送信息</h4>
            </div>
            <div class="modal-body" id="ordershipModalBody">
                <form id="editshipForm" class="form-horizontal">
                    <div class="form-group">
                        <label for="shipping_partername" class="col-sm-2 control-label">快递名称</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="shipping_partername" name="shipping_partername"
                                   placeholder="必填项">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="shipping_no" class="col-sm-2 control-label">快递单号</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="shipping_no" name="shipping_no"
                                   placeholder="必填项">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="contact_phone" class="col-sm-2 control-label">联系电话</label>

                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="contact_phone" name="contact_phone"
                                   placeholder="必填项">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="shipping_confirm">确认</button>
            </div>
        </div>
    </div>
</div>


<script src="/static/home/widget/order/orderlist/orderdetail.js"></script>
<script src="/static/home/widget/order/orderlist/addship.js"></script>

